package com.gewu.pm.utils.eventbus;
/**
 * EventBus
 * 定义发送消息的内容
 */
public class EventBean<T> {

    private int code;
    private T data;

    public EventBean(int code) {
        this.code = code;
    }

    public EventBean(int code, T data) {
        this.code = code;
        this.data = data;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
